package com.elsa.smart_buffet.controller;

import com.elsa.smart_buffet.context.UserContext;
import com.elsa.smart_buffet.pojo.ResultBox.ResponseResult;
import com.elsa.smart_buffet.service.MenuOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName : MenuMapperController  //类名
 * @Author : elsa //作者
 */
@RestController
@CrossOrigin
public class MenuOrderController {

    @Autowired
    private MenuOrderService menuOrderService;

    @GetMapping("/menuorder/{oId}")
    public ResponseResult selectMenuOrderMapperFromOrder(@PathVariable("oId") String oId) {
        return menuOrderService.selectMenuOrderMapperFromOrder(oId);
    }

}
